package com.zheng.springcloud.controller;

import com.zheng.springcloud.pojo.Dept;
import com.zheng.springcloud.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.ArrayList;

/**
 * @author lenovo
 */
@RestController
public class DeptConsumerDeptController {
    @Autowired
    private DeptService deptService;
    @RequestMapping("/consumer/dept/list")
    public ArrayList<Dept> select(){
        return deptService.select();
    }
}
